import 'package:flutter_easyloading/flutter_easyloading.dart';

class SetEasyLoading {
  factory SetEasyLoading({int displayDuration:2000, animationStyle:EasyLoadingAnimationStyle.scale,double fontSize: 14.0}){
    final SetEasyLoading _instance = SetEasyLoading._();
    EasyLoading.instance
      ..displayDuration = Duration(milliseconds:displayDuration)
      ..toastPosition = EasyLoadingToastPosition.center
      ..animationStyle = animationStyle
      ..fontSize = fontSize;
    return _instance;
  }

  SetEasyLoading._();
}